package com.leeoohoo.dto;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

@Data
public class AuthRole implements GrantedAuthority {

    private String name;

    public AuthRole setName(String name) {
        this.name = name;
        return this;
    }

    @Override
    public String getAuthority() {
        return this.name;
    }
}
